package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INoticeService {
    void save(Notice notice);
    void delete(Long id);
    void update(Notice notice);
    Notice get(Long id);
    List<Notice> listAll();
    // 分页查询的方法
    PageInfo<Notice> query(Employee employee,QueryObject qo);

    //设置已读
    void saveRelation(Long empId,Long notId,boolean readStatus);

    //点击查看修改为已读
    void updateRelation(Long empId,Long notId);

    //查询是否已读
    boolean selectRead(Long empId,Long notId);

    //是否发布
    void updateIssueById(Long id,Boolean issue);
}
